<?php
declare(strict_types=1);

namespace app\admin\service;

use app\admin\model\ResourceSaleBalance;

class ResourceSaleBalanceService
{
    /**
     * 获取余额
     * @param $where
     * @return array
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public static function findResourceSaleBalance($where)
    {
        return ResourceSaleBalance::findResourceSaleBalance($where);
    }

    /**
     * 创建余额
     * @param $data
     * @return ResourceSaleBalance
     */
    public static function createResourceSaleBalance($data)
    {
        return ResourceSaleBalance::createResourceSaleBalance($data);

    }

    /**
     * 更新余额
     * @param $data
     * @param $where
     * @return ResourceSaleBalance
     */
    public static function updateResourceSaleBalance($data, $where)
    {
        return ResourceSaleBalance::updateResourceSaleBalance($data, $where);
    }

}